Skip to content

Conversation

@redreceipt
Copy link
Member

Summary

  • limit "Projects Due Friday" Slack message to cycle initiative projects

Testing

  • flake8 *.py
  • mypy .

https://chatgpt.com/codex/tasks/task_e_6899ddedcd8483249874c1bfdbf40f68

Copilot AI review requested due to automatic review settings August 11, 2025 12:19
@redreceipt redreceipt temporarily deployed to bug-board-codex-filter--spcysx August 11, 2025 12:19 Inactive
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Filters the "Projects Due Friday" Slack notification to only include projects associated with a specific cycle initiative, reducing noise by focusing on relevant projects for the current cycle.

  • Adds filtering logic to post_friday_deadlines() function to check for cycle initiative configuration
  • Filters projects based on initiative nodes matching the configured cycle initiative name

jobs.py Outdated
Comment on lines 342 to 345
if any(
node.get("name") == cycle_init
for node in p.get("initiatives", {}).get("nodes", [])
)
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The nested list comprehension with any() creates complex logic that's hard to read. Consider extracting the filtering logic into a separate helper function for better maintainability.

Suggested change
if any(
node.get("name") == cycle_init
for node in p.get("initiatives", {}).get("nodes", [])
)
if has_initiative(p, cycle_init)

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
@redreceipt redreceipt temporarily deployed to bug-board-codex-filter--spcysx August 11, 2025 12:24 Inactive
@redreceipt redreceipt temporarily deployed to bug-board-codex-filter--spcysx August 11, 2025 12:52 Inactive
@redreceipt redreceipt merged commit a8c5c3b into main Aug 11, 2025
3 checks passed
@redreceipt redreceipt deleted the codex/filter-projects-by-cycle-initiative branch August 11, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants